﻿using gerecord.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace gerecord
{
    public delegate void CommandHandler(ICommand cmd);

    public interface IDownStream<TKey, TEntity>
    {
        Task UpdateAsync(UpdateCommand<TKey, TEntity> cmd);

        Task<ICommand> WaitAsync();
    }
}
